# $Id: PKGBUILD 85706 2013-03-05 09:52:12Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=texvc
pkgver=1.20
pkgrel=1
pkgdesc="tex to HTML/MathML/png converter used by mediawiki"
arch=(i686 x86_64)
url="http://www.mediawiki.org/wiki/Extension:Math"
license=("GPL")
depends=('imagemagick' 'ghostscript' 'texlive-core' 'texlive-latexextra')
makedepends=('ocaml')
source=(mediawiki-math-1.20.tar.gz::https://nodeload.github.com/wikimedia/mediawiki-extensions-Math/legacy.tar.gz/REL${pkgver/./_})
md5sums=('ee8fceb0a86f2972409104767406591c')

build() {
  cd $srcdir/wikimedia-mediawiki-extensions-Math-*/math
  make -j1
}

package() {
  cd $srcdir/wikimedia-mediawiki-extensions-Math-*/math
  install -d -m 0755 $pkgdir/usr/bin
  install -m 0755 texvc $pkgdir/usr/bin
}
